package cn.com.shopec.erp.purchase.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/** 
 * @ClassName: PoProduct 
 * @Description: 采购单货品表的实体
 * @author: lule
 * @date 2013-5-22 上午10:12:19
 *  
 */
@Entity
@Table(name="TBL_PO_PRODUCT")
public class PoProduct implements Serializable {
	private static final long serialVersionUID = 6275727886637691014L;
	/** id **/
	private String id;
	/** 采购单号 **/
	private String poNo;
	/** 货品号 **/
	private String prodNo;
	/** 商品名称 **/
	private String commodityName;
	/** 单位 **/
	private String unit;
	/** 规格 **/
	private String specification;
	/** 采购数量 **/
	private int purQuantity;
	/** 单价 **/
	private double purUnitPrice;
	/** 供应商编号 **/
	private String purSuppNo;
	/** 供应商名称 **/
	private String purSuppName;
	/** 仓库号 **/
	private String purWhNo;
	/** 仓库名称 **/
	private String purWhName;
	/** 删除标识 **/
	private int deleteFlag;
	
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "po_no")
	public String getPoNo() {
		return poNo;
	}
	
	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}
	
	@Column(name = "prod_no")
	public String getProdNo() {
		return prodNo;
	}
	
	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}

	@Column(name = "commodity_name")
	public String getCommodityName() {
		return commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}

	@Column(name = "unit")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Column(name = "specification")
	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	@Column(name = "pur_quantity")
	public int getPurQuantity() {
		return purQuantity;
	}

	public void setPurQuantity(int purQuantity) {
		this.purQuantity = purQuantity;
	}

	@Column(name = "pur_unit_price")
	public double getPurUnitPrice() {
		return purUnitPrice;
	}

	public void setPurUnitPrice(double purUnitPrice) {
		this.purUnitPrice = purUnitPrice;
	}
	
	@Column(name = "pur_supp_no")
	public String getPurSuppNo() {
		return purSuppNo;
	}

	public void setPurSuppNo(String purSuppNo) {
		this.purSuppNo = purSuppNo;
	}

	@Column(name = "pur_supp_name")
	public String getPurSuppName() {
		return purSuppName;
	}

	public void setPurSuppName(String purSuppName) {
		this.purSuppName = purSuppName;
	}
	
	@Column(name = "pur_wh_no")
	public String getPurWhNo() {
		return purWhNo;
	}

	public void setPurWhNo(String purWhNo) {
		this.purWhNo = purWhNo;
	}

	@Column(name = "pur_wh_name")
	public String getPurWhName() {
		return purWhName;
	}

	public void setPurWhName(String purWhName) {
		this.purWhName = purWhName;
	}
	
	@Column(name = "delete_flag")
	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
	
}
